#ifndef BT_THREAD_H
#define BT_THREAD_H
#include "sndaconfig.h"
typedef void * (*PTHREADFUN)(void *);

class bt_thread
{
    private:
        static unsigned int sum_index;
    public:
        bt_thread();
        virtual ~bt_thread();

        void set_fun(PTHREADFUN);
        bool running(void *arg);
        PTHREADFUN funpoint;
        unsigned int index;
        
};

struct thread_evnets
{
        void *pthread;
        void *arg;
};

void sleep_s(int hou, int min, int sec, int msec);

#endif
